import request from '@/utils/request'

export function errorTop(query) {
  return request({
    url: '/hawk-eye/statistics/error-top',
    method: 'get',
    params: query
  })
}

export function oneError(query) {
  return request({
    url: '/hawk-eye/statistics/error-type',
    method: 'get',
    params: query
  })
}

export function serviceTop(query) {
  return request({
    url: '/hawk-eye/statistics/service-top',
    method: 'get',
    params: query
  })
}

export function problemTop(query) {
  return request({
    url: '/hawk-eye/statistics/problem-top',
    method: 'get',
    params: query
  })
}
